package cn.wsalix.status;

public enum PriceEnum {
	showing("0", "展示价格"),original("1", "原始价格"),discount("2", "折扣价格"),tuan("3", "团购价格");
	private String code;
	private String title;

	PriceEnum(String code, String title) {
		this.code = code;
		this.title = title;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public static PriceEnum findByCode(String code) {
		for (PriceEnum userKind : PriceEnum.values()) {
			if (userKind.getCode().equals(code)) {
				return userKind;
			}
		}
		return null;
	}

}
